<script setup lang="ts">
import emitter from "../../utils/mitter";

defineOptions({ name: "ElInput" });

const model = defineModel();

const validate = () => {
  emitter.emit("validate");
};
</script>

<template>
  <div>
    <input type="text" v-model="model" @input="validate" />
  </div>
</template>
